﻿namespace azure_functions.Domain;

public interface ISuperComputer
{
    string CalculateTheAnswerToLifeTheUniverseAndEverything();
}

public class SuperComputer : ISuperComputer
{
    readonly SuperComputerSettings _superComputerSettings;

    public SuperComputer(SuperComputerSettings superComputerSettings)
    {
        _superComputerSettings = superComputerSettings;
    }

    public string CalculateTheAnswerToLifeTheUniverseAndEverything() =>
        _superComputerSettings.TheAnswerToLifeTheUniverseAndEverything;
}